package com.jzsm.common.utils;

import org.apache.commons.codec.digest.DigestUtils;

public class Md5Utils {

    /**
     * 签名
     *
     * @param license 待签license
     * @param ts  时间戳
     * @param ver 版本号
     * @return
     */
    public static String sign(String license, String ts, String ver) {
        return DigestUtils.md5Hex((ts + license + ts + license + "scm_client" + ver));
    }

    public static void main(String[] args) {
        String license = "06f9c99aa118ed0a9e2e827412842629";
        String ts = "0";
        String ver = "10";
        String sign = sign(license, ts, ver);
        System.out.println(sign);
    }
}
